﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace WindowsFormsApp1.Docking
{
    public class DocumentWindow : DockContent
    {
        public DocumentWindow()
        {
            Text = "Program.cs";
            TabText = "Program.cs";

            var editor = new RichTextBox
            {
                Dock = DockStyle.Fill,
                BackColor = System.Drawing.Color.FromArgb(30, 30, 30),
                ForeColor = System.Drawing.Color.White,
                BorderStyle = BorderStyle.None,
                Font = new Font("Consolas", 10),
                Text = "using System;\n\nclass Program\n{\n    static void Main()\n    {\n        Console.WriteLine(\"Hello VS Theme!\");\n    }\n}"
            };

            Controls.Add(editor);
        }
    }
}
